<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ question.question_text }}</title>
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>
    <h2>{{ question.question_text }}</h2>
    <p>Published on: {{ question.pub_date }}</p>
    <form action="{% url 'polls:vote' question.id %}" method="post">
        {% csrf_token %}
        <ul>
            {% for choice in question.choice_set.all %}
            <li>{{ choice.choice_text }} <input type="radio" name="choice" value="{{ choice.id }}" id="choice_{{ choice.id }}" />
                <label for="choice_{{ choice.id }}">{{ choice.choice_text }}</label></li>
            {% endfor %}
        </ul>
        <button type="submit">Vote</button>
    </form>
</body>
</html>